libxl: remove xenstore /local/domain/<domid> after reading /vm and /vss paths
authorIan Campbell <ian.campbell@citrix.com>
Fri, 23 Jul 2010 16:06:16 +0000 (17:06 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 23 Jul 2010 16:06:16 +0000 (17:06 +0100)
commitb545cf4fb2f9246b4dd50353e8018c2d66b9b3f7
tree87b3d8a91d6fa4736c5df464a90540a04f55434b
parent8e1c320660b3dbec5ab35ce41929f8b398224003
libxl: remove xenstore /local/domain/<domid> after reading /vm and /vss paths

On domain destroy libxl currently tries to find the /vm/<uuid> and
/vss/<uuid> paths by reading /local/domain/<domid>/{vm,vss} but does
so after removing /local/domain/<domid> which isn't much use.

Also construct the xenstore path in destroy the same way as in create. It's not
wrong but I had to look twice to check they were doing the same thing.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c